package com.rk.sample;

import com.rk.dao.CustomerDao;
import com.rk.dao.DaoFactory;
import com.rk.entity.Customer;

import java.io.IOException;

public class UpdateCustomerByID {
    public static void main(String[] args) throws IOException {
        Customer customer = new Customer();
        customer.setId(1);
        customer.setName("sun");
        customer.setCity("NanJing");
        customer.setEmail("3433935945@qq.com");
        customer.setPhone("10086");
        CustomerDao dao= DaoFactory.getCustomerDao();
        dao.updateByID(customer);
        System.out.println("--Update By ID--");
    }
}
